import {Injectable} from "@angular/core";

@Injectable()
export class MessageBushService{
    public static keys = {
        //客户通讯录列表需要更新数据
        clientListUpdated:"client-list-updated",
        //准客户列表需要更新客户列表
        prospectiveClientsUpdated:"prospective-clients-updated",
        // 客户详情数据更新
        clientDetailDataUpdated:"client-detail-data-updated",
        //筛选列表
        clientFilterListUpdated:"client-filter-list-updated",
        //个险客户列表需要更新
        clientIndividualClientUpdated:"client-individual-client-updated",
        //收藏夹回传状态
        favoriteIsUpdated: "favorite-is-updated",
        //客户地图客户详情数据更新
        clientMapCustomerDetailUpdated:"client-map-customer-detail-updated",
        //vip客户列表需要更新
        vipClientListUpdated:"vip-client-list-updated",
        //理赔客户列表更新
        compensationClientListUpdated:"compensation-client-list-updated",
        //生日客户列表需要更新
        birthdayClientListUpdated:"birthday-client-list-updated",
        //续期客户列表需要更新
        renewalClientListUpdated:"renewal-client-list-updated",
        //直播收藏列表需要更新
        webCastFavoriteUpdated:"webcast-favorite-updated",
        //人才库人才过滤
        talentFilterCondition:"talent-filter-condition",
        //增员保存成功
        addStuffSaveSuccess:"add-stuff-save-success",

        teamTeamIncreaseUpdate:"team-team-increase-update",

        clientImportContactsUpdate:"client-import-contacts-update",
        //首页日程保存成功
        indexSheduleSaveSuccess:"index-shedule-save-success",

        adpActionSheet: 'adpActionSheet'
    };

    private static KeyValue = {};
    public static setMessage(key:string,value:any = void 0){
        MessageBushService.KeyValue[key] = value;
    }

    public static getMessage(key:string):any{
        return MessageBushService.KeyValue[key];
    }
}
